package com.lilosoft.business.cga.service;

import com.lilosoft.business.cga.dao.CgaSupportExecutionMapper;
import com.lilosoft.business.cga.models.CgaSupportExecution;
import com.lilosoft.business.cga.models.CgaSupportExecutionExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 小峰
 * Date: 2019-08-28
 * Time: 14:47
 */
@Service
public class CgaSupportExecutionService {
    @Autowired
    private CgaSupportExecutionMapper cgaSupportExecutionMapper;

    public List<CgaSupportExecution> selectByCaseId(String caseId){
        CgaSupportExecutionExample example= new CgaSupportExecutionExample();
        CgaSupportExecutionExample.Criteria criteria = example.createCriteria();
        criteria.andCaseIdEqualTo(caseId);
        return cgaSupportExecutionMapper.selectByExample(example);
    }
}
